package com.gxg.common.exception;

/**
 * Created by guxiaoguang on 2018/5/11.
 * 系统业务异常
 *
 */
public class RunEx extends RuntimeException {

    /** serialVersionUID */
    private static final long serialVersionUID = 2332608236621015980L;

    private String code;

    public RunEx() {
        super();
    }

    public RunEx( String message) {
        super(message);
    }

    public RunEx( String code, String message) {
        super(message);
        this.code = code;
    }

    public RunEx( Throwable cause) {
        super(cause);
    }

    public RunEx( String message, Throwable cause) {
        super(message, cause);
    }

    public RunEx( String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}